package com.xiezc.common.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiezc
 * @since 2018-10-21
 */
@Data
public class BookInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String author;

    /**
     * 简介
     */
    private String desc;

    /**
     * 书本状态， 已完结 还是未完结
     */
    private String status;

    /**
     * 封面地址
     */
    private String coverUrl;

    /**
     * 书籍的抓取地址
     */
    private String fetchUrl;

    private String type;


    private String lastUrl;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
